import css from 'styled-jsx/css'

export const  navigation = css`
  .navigation{
    position: fixed;
    top: 90px;
    padding-top: 10px;
    bottom: 0px;
    left: 0px;
    width: 260px;
    background: #fff;
    transition: all .3s;
    &.navi-close{
      left: -260px;
    }
  }
  .navigation-area{
    padding-left: 50px;
    border-right: 1px solid #ddd;        
    height: ~'calc(100vh - 120px)';
    h3{
      margin: 0 0 12px 0;
      font-weight: 600;
    }
  }
`

export const passage = css`
  .passage{
    max-width: 82%;
    min-height: 90vh;
    padding-top: 84px;
  }
  .passage-area{
    padding: 10px 20px;
    margin-left: 267px;
    transition: all .3s;
    &.navi-close{
      margin-left: 30px;
    }
  }
  @media(max-width:700px) {
    .passage{
      max-width: 100%;
    }
    .passage-area{
      margin-left: 0px;
      &.navi-close{
        margin-left: 0px;
      }
    }
  }
  .tag{
    font-family: BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 15px;
    letter-spacing: 0;
    text-decoration: none;
    color: rgba(0,0,0,.68);
    background: rgba(0,0,0,.05);
    border-radius: 3px;
    padding: 5px 10px;
  }
`

export const title = css`
#main_title_container{
  margin: 0 0 10px 0;
  padding: 0;
  padding-top: 100px;
  margin-top: -100px;
}
#main_title{
  font-size: 25px;
  color: #333;
  margin-bottom: 10px;
}
`

export const hash = css`
  .hash-container{
    width: 18%;
    position: fixed;
    top: 100px;
    right: 0px;
    bottom: 12px;
    border-left: 1px solid #ddd;
    transition: all .3s;
    a{
      line-height: 16px;
      position: relative;
      padding: 3px 0px 3px 12px;
      transition: all 0.3s ease-in-out;
      display: block;
      &.title{
        &:after{
          content: "";
          display: block;
          height: 1px;
          width: 40%;
          clear: both;
          margin: 7px 0px 4px;
          background: rgb(219, 219, 219);
        }
      }
      &.hash2{
        padding-left: 24px;
      }
      &.active{
        color: #e25e5e;
        &:before{
          content: "";
          left: -3.5px;
          top: 8.5px;
          position: absolute;
          width: 6px;
          height: 6px;
          border-radius: 50%;
          background: #e25e5e;
        }
      }
    }
  }
  @media(max-width:700px) {
    .hash-container{
      right: -18%;
    }
  }
`

export const markdown = css`
  .passage-area{
    p code{
      color: #e25e5e;
      padding: .2rem .3rem .1rem;
      border: 1px solid #d8e0e4;
      border-radius: 2px;
      vertical-align: middle;
      white-space: pre-wrap;
      font-size: .8em;
      line-height: 1em;
    }
    pre{
      padding: .5rem;
    }
    pre,code{
      background: #f5f7f8;
    }
    img{
      width: 100%
    }
    blockquote{
      border-left: #dfe1e3 5px solid;
      padding-left: 1em;
    }
    h2, h3{
      padding-top: 90px;
      margin-top: -90px;
    }
  }
`

export const tooltipStyle = css`
  #tooltip{
    position: absolute;
  }
`